package com.daiqee.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 采购计划
 * 
 * <br/>
 * @since JDK 1.8
 * @version  V2.1
 * @author RichardTang 
 * @date: 2018年5月7日 下午5:45:42
 * @package com.daiqee.pojo
 * @copyright:Copyright (c) 2018, 1245811923@qq.com All Rights Reserved.
 */
@TableName("procurement_plan")
public class ProcurementPlan extends LogicDeleteFlag{
	
	@TableId(type=IdType.AUTO)
    private Integer procurePlanId;

	@TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String procurePlanOrderNumber; //采购单号

    private String procurePlanTheme;	    //采购主题

    @TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String procurePlanPlanner;		//计划员

    @TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String procurePlanBuyer;		//采购员

    private String procurePlanAmountBudget;	//金额预算

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") 
    private Date procurePlanStartDate;		//采购日期

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date procurePlanEndDate; 		//截止日期

    @TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String procurePlanBuyerStatus;	//采购状态

    @TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String procurePlanCheckStatus;	//审批状态

    @TableField(exist=false)
    private ProductionPrise[] data;			//存储订单
    
	public ProductionPrise[] getData() {
		return data;
	}

	public void setData(ProductionPrise[] data) {
		this.data = data;
	}

	public Integer getProcurePlanId() {
        return procurePlanId;
    }

    public void setProcurePlanId(Integer procurePlanId) {
        this.procurePlanId = procurePlanId;
    }

    public String getProcurePlanOrderNumber() {
        return procurePlanOrderNumber;
    }

    public void setProcurePlanOrderNumber(String procurePlanOrderNumber) {
        this.procurePlanOrderNumber = procurePlanOrderNumber == null ? "" : procurePlanOrderNumber.trim();
    }

    public String getProcurePlanTheme() {
        return procurePlanTheme;
    }

    public void setProcurePlanTheme(String procurePlanTheme) {
        this.procurePlanTheme = procurePlanTheme == null ? "" : procurePlanTheme.trim();
    }

    public String getProcurePlanPlanner() {
        return procurePlanPlanner;
    }

    public void setProcurePlanPlanner(String procurePlanPlanner) {
        this.procurePlanPlanner = procurePlanPlanner == null ? "" : procurePlanPlanner.trim();
    }

    public String getProcurePlanBuyer() {
        return procurePlanBuyer;
    }

    public void setProcurePlanBuyer(String procurePlanBuyer) {
        this.procurePlanBuyer = procurePlanBuyer == null ? "" : procurePlanBuyer.trim();
    }

    public String getProcurePlanAmountBudget() {
        return procurePlanAmountBudget;
    }

    public void setProcurePlanAmountBudget(String procurePlanAmountBudget) {
        this.procurePlanAmountBudget = procurePlanAmountBudget == null ? "" : procurePlanAmountBudget.trim();
    }

    public Date getProcurePlanStartDate() {
        return procurePlanStartDate;
    }

    public void setProcurePlanStartDate(Date procurePlanStartDate) {
        this.procurePlanStartDate = procurePlanStartDate;
    }

    public Date getProcurePlanEndDate() {
        return procurePlanEndDate;
    }

    public void setProcurePlanEndDate(Date procurePlanEndDate) {
        this.procurePlanEndDate = procurePlanEndDate;
    }

    public String getProcurePlanBuyerStatus() {
        return procurePlanBuyerStatus;
    }

    public void setProcurePlanBuyerStatus(String procurePlanBuyerStatus) {
        this.procurePlanBuyerStatus = procurePlanBuyerStatus == null ? "" : procurePlanBuyerStatus.trim();
    }

    public String getProcurePlanCheckStatus() {
        return procurePlanCheckStatus;
    }

    public void setProcurePlanCheckStatus(String procurePlanCheckStatus) {
        this.procurePlanCheckStatus = procurePlanCheckStatus == null ? "" : procurePlanCheckStatus.trim();
    }
}